package com.peenongsaban.freelance.action;

import com.opensymphony.xwork2.ActionSupport;
import com.peenongsaban.freelance.model.FreelanceDetailModel;
import com.peenongsaban.freelance.service.FreelanceDetailService;

public class FreelanceDetailAction extends ActionSupport {
	
	private static final long serialVersionUID = 1L;
	
	FreelanceDetailModel model = new FreelanceDetailModel();

	public String showFreelanceDetailPage(){
		FreelanceDetailService service = new FreelanceDetailService();
		this.model.setFreelanceDetail(service.getFreelanceDetail(model));
		return SUCCESS;
	}

	public FreelanceDetailModel getModel() {
		return model;
	}

	public void setModel(FreelanceDetailModel model) {
		this.model = model;
	}
}
